<?php
if(!isset($GLOBALS['_vars'])) $GLOBALS['_vars'] = array(); 
$fields = array();
?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>苏萍奖学金-网上申请</title>
<link href="/css/public.css" type="text/css" rel="stylesheet">
<link href="/css/csspub.css" type="text/css" rel="stylesheet">
<link href="/hyxt/pc/css/member.css" rel="stylesheet" type="text/css">
<script src="/js/sfyzxx_jxj.js"></script>
<script language="javascript" src="js/jquery-1.7.1.min.js"></script>
<script language="javascript" src="/js/left-fixed.js"></script>
<link rel="stylesheet" type="text/css" href="css/reveal.css">
<script language="javascript" src="js/jquery.reveal.js"></script>
<script type="text/javascript" >
  function tj(){
	  alert("请首先填写并保存第一步");
	  window.scrollTo(10,100); 
       return false;
  }
 </script>
<style type="text/css">
<style>
body{position:relative;}
.center{width:574px;font-family:"微软雅黑";}
.center .title{line-height:32px;font-size:16px;color:#333;text-align:center;}
li{list-style:none;}
.center ul li{float:left;padding-left:27px;height:33px;border-bottom:1px solid #fff;line-height:33px;
	font-size:14px;color:#333;width:161px;background:#f9f9f9;}
.center ul li input{margin:0;margin-right:10px;margin-top:6px;}
.center .dc-btn{width:114px;height:39px;border:1px solid #c50e1b;
	background:url(images/tc_03.jpg) 27px center no-repeat;padding-left:56px;
	text-align:left;color:#c50e1b;margin:0 229px;cursor:pointer;}
.center .dc-btn:hover{background:#c50e1b url(images/tc_02.jpg) 27px center no-repeat;color:#fff;}
.close{width:15px;height:15px;position:absolute;right:16px;top:17px;}
 .export a{ color:#fff;}
.banner{width:100%;height:400px; overflow:hidden}
.banner img{width:100%;height:400px;}
 .main-inner2{width:1100px;margin:0 auto;position:relative;}
.nav2{height:61px;background:#f6f6f6;width:100%;overflow:inherit;}
.nav2 ul{height:60px;float:left;}
.nav2 ul li{float:left;margin-right:31px;height:61px;}
.nav2 ul li a{color:#333;display:block;line-height:61px;}
.nav2 ul li a:hover{line-height:55px;margin-top:3px;border-bottom:3px solid #d61f26;color:#d61f26;}
.nav2 ul li .nav2-on{line-height:55px;margin-top:3px;border-bottom:3px solid #d61f26;color:#d61f26;}
.position{float:right;}
.position p{line-height:61px;}
.position p img{margin-top:24px;width:17px;height:17px;float:left;padding-right:4px;}
.position p a{margin:0 2px;color:#666;line-height:61px;display:inline-block;}
.images-box{
	width:159px;
	height:159px;
	position:absolute;
	top:-88px;
	left:0;
	}
.images-box .images{
	width:159px;
	height:159px;
	position:relative;
	display: inline-block;
	background:url(/images/img_01.png) center center no-repeat;
	}
	.images .pic{
	position: absolute;
    right: 0px;
    top: 0px;
    opacity: 0;
    -ms-filter: 'alpha(opacity=0)';
	width:159px;
	height:159px;
	cursor:pointer;
	}
    </style>
<script type="text/javascript" src="/hyxt/pc/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="/js/validate-1.14.0.min.js"></script>
<script type="text/javascript" src="/js/jxj.js"></script>
<script type="text/javascript" src="/js/a.js" charset="utf-8" ></script>
   <script language='javascript' src="/js/main.js"></script>
 <style type="text/css">
 .litpic_span{width:77px;overflow:hidden;height:21px;*vertical-align:3px;margin-left:-60px;*margin-left:-75px;cursor:pointer;}
 #litpic{width:85px;height:20px;margin-left:-20px;filter:alpha(opacity=00);-moz-opacity:.0;opacity:0.0;cursor:pointer;} 
 .main-form .jbxx ul li span{
	 display:inline-block;
	 }
	</style>
   <script language='javascript' src="/js/main.js"></script>
 <style type="text/css">
 .litpic_span{width:77px;overflow:hidden;height:21px;*vertical-align:3px;margin-left:-60px;*margin-left:-75px;cursor:pointer;}
 #litpic{width:85px;height:20px;margin-left:-20px;filter:alpha(opacity=00);-moz-opacity:.0;opacity:0.0;cursor:pointer;}
 .main-form .jbxx ul li span{
	 display:inline-block;
	 }
#litpic-error{
	position:absolute;
	top:0;
	left:90px;
	}
	</style>
 </head>
<body>
 <div class="banner" style="background:url(http://www.ae-foundation.com/images/banner/spjxj_banner-20231206.jpg) center center no-repeat;"></div>
<div class="main-inner nav2">
	<div class="main-inner2">
    	<ul>
        	<li><a href="http://www.ae-foundation.com/a/jxj/">项目首页</a></li>
        	<li><a href="http://www.ae-foundation.com/a/jxj/xmjs/">项目介绍</a></li>
        	<li><a href="http://www.ae-foundation.com/a/jxj/sqtj/">申请条件</a></li>
        	<li><a href="http://www.ae-foundation.com/a/jxj/jzsq/">救助公示</a></li>
        	<li><a class="nav2-on"  href="http://www.ae-foundation.com/member/login_jxj.php">救助申请</a></li>
        </ul>
    	<div class="position"><p> <script type="text/javascript">
           	var now=(new Date()).getHours();
			if(now>0&&now<=6){
				document.write("午夜好，");
			}
			else if(now>6&&now<=9){
				document.write("早上好，");
			}
			else if(now>9&&now<=11){
				document.write("上午好，");
			}else if(now>11&&now<=14){
				document.write("中午好，");
			}else if(now>14&&now<=18){
				document.write("下午好，");
			}else{
				document.write("晚上好，");
			}
			</script>
       <a href="#" class="userName"><?php echo $cfg_ml->M_UserName?></a> <a href="../member/index_do_jxj.php?fmdo=login&dopost=exit#">[退出]</a> </p></div>
        <div style="clear:both;"></div>
        </div>
	</div>
<div class="main member-main">
<div class="main-inner">
	<div class="main-nav">
    	<ul>
        	<div class="images-box">
        	<div class="images">
<a href="#" data-reveal-id="myModal2" data-animation="none" >
 <?php 
 $face = $cfg_ml->fields['face'];
     if($face!=''){ echo "<img   src='$face' style='_margin-top:expression(( 180 - this.height ) / 2);cursor:pointer'  />\r\n";
	 }
  else echo "<img   src='/hyxt/pc/images/img_01.png' style='_margin-top:expression(( 180 - this.height ) / 2);cursor:pointer'   />\r\n";	
       			?>   </a>         </div>
            </div>
        	<li><a href="index_jxj.php"  target="_self"  class="on">网上申请</a></li>
        	<li><a href="content_list_jxj.php?channelid=28"  target="_self" class="" >信息管理</a></li>
        	<li><a href="zhuangtai_list_jxj.php?channelid=28"  target="_self"  class="" >状态查询</a></li>
        	<li><a href="edit_baseinfo_jxj.php"  target="_self"  class="" >帐号信息</a></li>
        </ul>
    </div>
    <div class="main-body">
<!-- <img src="/images/pcbuzhou.png"/> -->
		<link rel="stylesheet" type="text/css" href="/hyxt/model-head20211227/css/jz.css"/>
		<div class="buzhou">
			<h1>网上申请<span id="title-3">3</span>步骤</h1>
			<ul>
				<li>
					<img src="/hyxt/model-head20211227/images/buzhou1.png" alt="步骤1">
					<p>在“网上申请”页面分布填写信息并保存，可以对已填写信息进行修改，缺少的信息进行补填。</p>
				</li>
				<li>
					<img src="/hyxt/model-head20211227/images/buzhou2.png" alt="步骤2">
					<p>申请表填写完成，确认没问题后，在“信息管理”页点击“提交”按钮提交申请。<span id="zhu">注：申请表提交后则不可以对信息进行任何修改。</span></p>
				</li>
				<li>
					<img src="/hyxt/model-head20211227/images/buzhou3.png" alt="步骤4">
					<p>由工作人员审核筛查申请信息，最终审核结果会在“状态查询”页显示。</p>
				</li>
			</ul>
		</div>
		<div style="clear: both;"></div>
        <div class="main-form">
        	<p>基本信息</p>
 <form class="jbxx" name="form1" action="jxjdb_add.php" method="post" enctype="multipart/form-data" onSubmit="return myCheck()" id="jxjfrom">
          <input type="hidden" name="dopost" value="save" />
          <input type="hidden" name="channelid" value="28" />
    <input type='hidden' name='step' value='1' />
<input type='hidden' name='dede_addonfields' value="xingming,text;xingbie,radio;yuanxi,text;minzu,text;nianling,int;chushengnianyue,datetime;zhengzhimianmao,text;guanxi,text;wenlike,text;shenfenzhenghao,text;lianxidianhua,text;jiatingdizhi,text;qq,radio;quyu,text;gaokaochengji,float;luquyuanxiao,text;zhuanye,text;shqshijian,datetime;zhuangtai,radio;zizhujine,float;liyou,multitext;banzhuren,htmltext;xuexiaoyijian,htmltext;aieryijian,htmltext;num,int;tijiao,int;shztime,datetime;shjgtime,datetime;zzztime,datetime;yzztime,datetime">
<input type="hidden" name="dede_fieldshash" value="d6b81b41c51fc668b1bcaed3944863ff" />
<?php
			$nowtime = GetDateTimeMk(time());
			echo "<input name=\"shqshijian\" value=\"$nowtime\" type=\"hidden\" id=\"shenqingshijian\" >";
			?>  
			 <p style="display:none">
            <select name='typeid' size='1'>
<option value='10' class='option3' selected=''>─苏萍奖学金</option>
</select></p>   <ul>
                    <li>
                        <span>姓名：</span>
                        <input type="text" class="name"  name='xingming' id='xingming' >
                    </li>
                    <li>
                        <span>身份证号：</span>
                        <input type="text" class="name"  name='shenfenzhenghao' id='shenfenzhenghao'>
                    </li>
					<li style="display:none">
                        <span>省市区域：</span>
                        <input type="text" class="name"  name='quyu' id='quyu'  >
                    </li>

                    <li>
                        <span>性别：</span>
                        <input type='radio' name='xingbie' class='np xxlx' id='man' value='男'>男
<input type='radio' name='xingbie' id='woman' class='np xxlx' value='女'>女
                    </li>
                    <li>
                        <span>出生日期：</span>
                        <input name="chushengnianyue" value="" type="text" id="chushengnianyue"   placeholder="请选择日期"  class="name"/>
                    </li>
                    <li>
                        <span>民族：</span>
                        <input type="text" class="name"  name='minzu' id='minzu'>
                    </li>
                    <li>
                        <span>联系电话：</span>
                        <input type="text" class="name"  name='lianxidianhua' id='lianxidianhua'>
                    </li>
 <li class="address" style="height:auto;">
                        <span>照片（请上传2寸证件照）：</span><br/>
               <div class="on1">
                        	<div class="xian"></div>
                 			<div class="chahao"></div>
                        </div> 
                       	<div class="addhao">
                        	<a class="xzbtn">选择文件</a>
               				<input  name="litpic" type="file" id="litpic"   class="fileinput">
            			</div>
                    </li>
                      <div style="clear:both;"></div>
            		</ul>
                    <div class="button-btn">
                    	<button class="qx" type="reset">取消</button>
                    	<button class="ok" type="submit" name="submit1" id="submit1">完成</button>
                    </div>
                    <div style="clear:both;"></div>
                </form>
        </div>
	      <div class="main-form">
        	<p>学习情况</p>
 <form class="jbxx" name="addcontent" action="" method="post" enctype="multipart/form-data"  onSubmit="return myCheck()">
          <input type="hidden" name="dopost" value="save" />
          <input type="hidden" name="channelid" value="28" />
    <input type='hidden' name='step' value='2' />
<input type='hidden' name='dede_addonfields' value="yuanxi,text;gaokaochengji,float;luquyuanxiao,text;zhuanye,text;">
<input type="hidden" name="dede_fieldshash" value="d6b81b41c51fc668b1bcaed3944863ff" />
	 <p style="display:none">
            <select name='typeid' size='1'>
<option value='10' class='option3' selected=''>─苏萍奖学金</option>
</select></p> 
            		<ul>
                    <li>
                        <span>学校名称：</span>
                        <input type="text" class="name"  name="title"   id="title"    >
                    </li>
                    <li>
                        <span>所在班级：</span>
                        <input type="text" class="name"    name='yuanxi' id='yuanxi'   >
                    </li>
                    <li>
                        <span>录取院校：</span>
                        <input type="text" class="name"  name='luquyuanxiao' id='luquyuanxiao'   >
                    </li>
                    <li>
                        <span>专    业：</span>
                        <input type="text" class="name"  name='zhuanye' id='zhuanye'  >
                    </li>
                    <li>
                        <span>高考成绩/分：</span>
                        <input type="text" class="name"  name='gaokaochengji' id='gaokaochengji'>
                    </li>
            		</ul>
                    <div class="button-btn">
                    	<button class="qx" type="reset">取消</button>
                    	<button class="ok"  type="submit" onClick="tj();">完成</button>
                    </div>
                    <div style="clear:both;"></div>
                </form>
        </div>
	  <div class="main-form">
        	<p>家庭情况</p>
 <form class="jbxx" name="addcontent" action="" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();">
          <input type="hidden" name="dopost" value="save" />
          <input type="hidden" name="channelid" value="28" />
    <input type='hidden' name='step' value='3' />
<input type='hidden' name='dede_addonfields' value="zhengzhimianmao,text;guanxi,text;wenlike,text;jiatingdizhi,text;qq,radio;">
<input type="hidden" name="dede_fieldshash" value="d6b81b41c51fc668b1bcaed3944863ff" />
			 <p style="display:none">
            <select name='typeid' size='1'>
<option value='10' class='option3' selected=''>─苏萍奖学金</option>
</select></p>
            		<ul>
                    <li>
                        <span>监 护 人：</span>
                        <input type="text" class="name"   name='zhengzhimianmao' id='zhengzhimianmao'  >
                    </li>
                    <li>
                        <span>与本人的关系：</span>
                       <input type="text" class="name"   name='guanxi' id='guanxi'  ></li>
                    <li>
                        <span>监护人电话：</span>
                        <input type="text" class="name"  name='wenlike' id='wenlike'    >
                    </li>
                    <li>
                        <span>家庭基本情况：</span>
                        <input type='radio' name='qq' class='np xxlx' value='建档立卡扶贫户' >建档立卡扶贫户
<input type='radio' name='qq' class='np xxlx' value='孤儿'>孤儿
<input type='radio' name='qq' class='np xxlx' value='单亲'>单亲
<input type='radio' name='qq' class='np xxlx' value='残疾'>残疾
<input type='radio' name='qq' class='np xxlx' value='无'>无
                    </li>
                    <li>
                        <span>家庭地址：</span>
                        <input type="text" class="name"   name='jiatingdizhi' id='jiatingdizhi'  >
                    </li>
            		</ul>
                    <div class="button-btn">
                    	<button class="qx" type="reset">取消</button>
                    	<button class="ok" type="submit" onClick="tj();">完成</button>
                    </div>
                    <div style="clear:both;"></div>
                </form>
        </div>
        <div class="main-form main-sqly">
        	<p>自我鉴定</p>
 <form class="jbxx sqly" name="addcontent" action="" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();" style="display:block;">
          <input type="hidden" name="dopost" value="save" />
          <input type="hidden" name="channelid" value="28" />
    <input type='hidden' name='step' value='4' />
<input type='hidden' name='dede_addonfields' value="liyou,multitext;">
<input type="hidden" name="dede_fieldshash" value="d6b81b41c51fc668b1bcaed3944863ff" />
			 <p style="display:none">
            <select name='typeid' size='1'>
<option value='10' class='option3' selected=''>─苏萍奖学金</option>
</select></p>
            	<textarea placeholder="自我鉴定"  name='liyou' id='liyou' ></textarea>
                    <div class="button-btn">
                    	<button class="qx" type="reset">取消</button>
                    	<button class="ok" type="submit" onClick="tj();">完成</button>
                    </div>
                    <div style="clear:both;"></div>
        </div>
        <!--<button class="tj" type="submit">保存</button>--></form>
    </div>
</div>
</div> <div style="clear:both"></div><div style="clear:both"></div><div style="clear:both"></div><div style="clear:both"></div>
 <script type="text/javascript">
$(".main-form p").click(function(){
		$(this).next("form").slideToggle(300).siblings("form").slideUp(300);
	})
$(".main-nav ul li a").click(function(){
	$('.main-nav ul li a').removeClass('on')
	 $(this).addClass('on')
	})
</script>
<!--弹窗开始-->
<div id="myModal2" class="reveal-modal">
 <form action="edit_face.php" method="post" enctype="multipart/form-data" name="form2">
    <input type="hidden" name="dopost" value="save" />
      <div id="mainCp">
       <h3 class="bt">用户头像</h3>
        <div class="postForm">
            <input name="face" type="file" id="face" size="45" />
         </div>
          <div style="clear:both;"></div>
          <p>
            <button class="export" type="submit">&nbsp;&nbsp;&nbsp;&nbsp;更&nbsp;&nbsp;新&nbsp;&nbsp;&nbsp;&nbsp;</button>
          </p>
    </div>
</form> 
</div>
<!--弹窗结束-->
<script>
// 单张上传照片  删除照片
 $(" .fileinput").change(function () {
      var file = this.files[0];
      readFile(file,$(this).parent().siblings(".on1"));
 });
 $(".on1").mouseover(function () {
      $(this).children(".xian").show();
     $(this).children(".chahao").show();
 });
 $(".on1").mouseleave(function () {
     $(this).children(".xian").hide();
      $(this).children(".chahao").hide();
 });
$(".chahao").click(function () {
     $(this).next().remove();
     $(".xian").hide();
     $(".chahao").hide();
     $(this).parent().hide();
      $(this).parent().siblings(".addhao").show();
     $(this).parent().siblings(".addhao").children().val("");
 });
 var on =document.querySelector(".on1");
 //    需要把阅读的文件传进来file element是把读取到的内容放入的容器
 function readFile(file,element) {
 //        新建阅读器
 var reader = new FileReader();
 //        根据文件类型选择阅读方式
 switch (file.type){
 case 'image/jpg':
 case 'image/png':
 case 'image/jpeg':
 case 'image/gif':
 reader.readAsDataURL(file);
 break;
}
 //        当文件阅读结束后执行的方法
 reader.addEventListener('load',function () {
 //         如果说让读取的文件显示的话 还是需要通过文件的类型创建不同的标签
 switch (file.type){
     case 'image/jpg':
    case 'image/png':
     case 'image/jpeg':
    case 'image/gif':
    var img = document.createElement('img');
    img.src = reader.result;
    element.append(img);
  //  element.siblings(".addhao").hide();
    element.show();
     break;
   }
  });
 }
 // 批量上传部分
 var piliang = document.querySelector('#piliang');
 var on = $(".on1");
 piliang.addEventListener('change',function () {
 for (var i = 0;i < this.files.length;i++){
 var file = this.files[i];
 on.eq(i).children(".chahao").next().remove();
 readFile(file,on.eq(i));
 }
 });
 //
 var on = $(".on1");
 $(".next").click(function () {
    for (var i = 0; i < 10; i++) {
    console.log(on[i].childNodes.length);
   if (on[i].childNodes.length==6){
//这个判断就是说明里面有多少个孩子，孩子不够数，不会生成相册
      }else{
           alert("上传照片不足3张");
          $(".next").attr("href","javascript:void(0)");
           return
            }
     $(".next").attr("href","生成相册.html");
    }
 });
</script>
<style>
         .kuang{
              display: inline-block;
              vertical-align: middle;
              box-shadow: inset 0px 1px 20px 5px #ddd;
              text-align: left;
              margin-right: 20px;
              margin-bottom: 20px;
              width: 165px;
              height: 165px;
          }
         .addhao{
			  width:280px!important;
			  height:22px!important;
              background: url(../img/add_photo_plus.png);
			  overflow:hidden;
			  position:relative;
			  cursor:pointer;
          }
		  .addhao .xzbtn{
			  width:78px;
			  height:20px;
			  position:absolute;
			  line-height:20px;
			  text-align:center;
			  border:1px solid #ebebeb;
			  border-radius:2px;
			  color:#333;
			  background:#fafafa;
			  display:block;
			  cursor:pointer;
			  font-size:12px;
			  }
          .on1{
             width: 273px;
    		 height: 174px;
			 padding:10px 0;
    		 position: relative;
    		 display: inline-block;
    		 overflow: hidden;
   			 border: 1px solid #ebebeb;
   			 background: url(/member/templets/images/tx.jpg) center center no-repeat;
          }
          .xian{
              width: 165px;
              height: 165px;
              position: absolute;
              display: none;
              z-index: 2;
          }
          .chahao{
              position: absolute;
              width: 60px;
              height: 60px;
              top: 52.5px;
              left: 52.5px;
              display: none;
              z-index: 2;
          }
		  .main-form .jbxx ul li .addhao input{
			  border:none;
			  padding:0;
			  width:80px;
			  height:22px;
			  overflow:hidden;
			  position:absolute;
			  left:0;
			  top:0;
			  opacity:0;
    		  -ms-filter: 'alpha(opacity=0)';
			  cursor:pointer;
			  } 
          .on1 img{
              position: absolute;
              left: 0;
              right: 0;
              top: 0;
              bottom: 0;
              margin:auto;
			  background:#fff;
			  max-width:273px;
			  max-height:174px;
          }
          .kuang input{
              width: 164px;
              height: 164px;
              opacity: 0;
          }
          .button{
              width: 500px;
              height: 36px;
              margin: 0 auto;
          }
          .button .set{
              float: left;
              width: 216px;
              height: 36px;
              background: #ddd;
              text-align: center;
             position: relative;
          }
          .set input{
              width: 216px;
              height: 36px;
              opacity: 0;
              position: absolute;
              top: 0;
              left: 0;
          }
          .button .next{
             float: right;
             width: 216px;
             height: 36px;
             background: red;
             color: white;
         }
         .bigk{
             width: 1000px;
             margin: 0 auto;
             text-align: center;
         }
   </style>
    <script src="/laydate/laydate.js"></script> 
  <script>
lay('#version').html('-v'+ laydate.v);
//执行一个laydate实例
laydate.render({
  elem: '#chushengnianyue' //指定元素
});
</script>
<script type="text/javascript" src="/js/a.js" charset="utf-8" ></script>
 </body>
</html>